package com.dhx.service;

import com.dhx.dao.KhInfoDao;
import com.dhx.model.KhInfo;

import java.util.ArrayList;

/**
 * @ClassName KhInfoService
 * @Author 邓皓轩
 * @Date 2024/11/3 下午2:19
 **/
public class KhInfoService {
    private KhInfoDao khInfoDao = new KhInfoDao();
    public boolean addKhInfo(KhInfo kh){
        Boolean aBoolean = khInfoDao.addKhInfo(kh);
        return aBoolean;
    }
    public boolean deleteKhInfo(int id){
        Boolean aBoolean = khInfoDao.deleteKhInfo(id);
        return aBoolean;
    }
    public ArrayList<KhInfo> getKhInfoByName(KhInfo kh){
        ArrayList<KhInfo> khInfos = khInfoDao.getKhInfoByName(kh);
        return khInfos;
    }
    public boolean updateKhInfo(KhInfo kh){
        Boolean aBoolean = khInfoDao.updateKhInfo(kh);
        return aBoolean;
    }
}
